package com.gigmissions.server.guice;

import com.gigmissions.client.services.ArtistService;
import com.gigmissions.client.services.LoginService;
import com.gigmissions.server.repository.ProductionPMF;
import com.gigmissions.server.repository.Repository;
import com.gigmissions.server.services.ArtistServiceImpl;
import com.gigmissions.server.services.LoginServiceImpl;
import com.google.inject.Singleton;
import com.google.inject.servlet.ServletModule;


public class GigMissionsServletModule extends ServletModule {
  
  @Override
  protected void configureServlets() {
    
      serve("/gigmissions/GWT.rpc").with(GuiceRemoteServiceServlet.class);
      
      
      
      bind(ArtistService.class).to(ArtistServiceImpl.class);
      bind(LoginService.class).to(LoginServiceImpl.class);
      bind(Repository.class).to(ProductionPMF.class).in(Singleton.class);
      
  }

  

}
